<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	include "header.php";
	
	$userInfo = $dbs -> select('SELECT * FROM `'. DB_PRE .'user` WHERE `id` = '. $user -> id()  );
	$userInfo = $userInfo[0];
	
	
?>
<script type="text/javascript" src="<?php echo JS_PATH;?>homeEditAccoun.js"></script>

</head>
<body>
	<?php  require('top.php');  ?>

<div class="pos">
	<div class="contents">
    	<?php require('nav.php'); ?>   
        <h2 class="title"><?php echo $navigation -> getList();?><span><a href="<?php echo urlRewrite('option=home&id='. $user -> id())?>"><?php echo lang_preview_works_show;?></a></span></h2>
        <div id="homeEditAccoun" class="homeEditAccoun">
        <form action="<?php echo WEB_ROOT_PATH;?>?option=passWordAction&type=action&do=rePassWord" method="post" name="userAccounForm" id="userAccounForm" class="form">
        <ul class="box">
        <li class="highBig"><?php echo lang_account_info;?></li>
        <li><label><?php echo lang_email;?>:</label><strong><?php echo htmlShow($userInfo['userName']); ?></strong></li>
        <li><label><?php echo lang_username;?>:</label><strong><?php echo htmlShow($userInfo['nickName']); ?></strong></li>
        <li class="check"><label><?php echo lang_current_password;?>:</label><input id="currentPassword" name="currentPassword" type="password" class="text" maxlength="30" /></li>
        <li class="check"><label><?php echo lang_password;?>:</label><input id="passWord" name="passWord" type="password" class="text" maxlength="30" /></li>
        <li class="check"><label><?php echo lang_affirm_password;?>:</label><input id="passWord1" name="passWord1" type="password" class="text" maxlength="30" /></li>
        <hr />
        <li class="globalInfo"></li>
        <li><input type="submit" value="<?php echo lang_submit;?>" class="submit" /></li>
        </ul>
        </form>
        </div><!--#upload-->
	</div><!-- .contents-->
</div>

</body>
</html>
